﻿@model WebUI.Models.CoEditPasswordViewModel

@{
    ViewBag.Title = "Account / Password";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1><a href="@Url.Action("EditProfile")">Account</a> / Password</h1>
<div class="editdes">Change your password</div>
<div class="spacer"></div>

<ul class="tabs">
    <li>
        <a href="@Url.Action("EditProfile")">Profile</a>
    </li>
    <li class="active">
        <a href="@Url.Action("EditPassword")">Password</a>
    </li>
</ul>
<div class="tabsbottom"></div>

<div class="mainSection atl">
    <div class="clear"></div>
    @using (Html.BeginForm())
    {
        <div class="fl left">Old password</div>
        <div class="fl right">
            @Html.PasswordFor(m => m.OldPassword)
            @Html.ValidationMessageFor(m => m.OldPassword)
        </div>
        <div class="clear"></div>
        <div class="smallspacer"></div>
        <div class="fl left">New password</div>
        <div class="fl right">
            @Html.PasswordFor(m => m.NewPassword)
            @Html.ValidationMessageFor(m => m.NewPassword)
        </div>
        <div class="clear"></div>
        <div class="fl left left-tip">&nbsp;</div>
        <div class="fl right right-tip">(Minimum 6 characters)</div>
        <div class="clear"></div>
        <div class="spacer"></div>
        <div class="fl left">&nbsp;</div>
        <div class="fl right">
            <input class="blue-submit" type="submit" name="submitPassword" value="Save changes" />
        </div>
    }
    <div class="clear"></div>
</div>

